import request from '@/utils/request'

// 查询对话记录列表
export function listChat (query) {
  return request({
    url: '/deepseek/chat/list',
    method: 'get',
    params: query
  })
}

// 查询对话记录详细
export function getChat (chatId) {
  return request({
    url: '/deepseek/chat/' + chatId,
    method: 'get'
  })
}


// 新增对话记录
export function addChat (data) {
  return request({
    url: '/deepseek/chat/addChat',
    method: 'post',
    data: data
  })
}

// 修改对话记录
export function updateChat (data) {
  return request({
    url: '/deepseek/chat/editChat',
    method: 'put',
    data: data
  })
}

// 删除对话记录
export function delChat (chatId) {
  return request({
    url: '/deepseek/chat/delChat/' + chatId,
    method: 'delete'
  })
}